web3.js web3.utils.fromWei
web3.utils.fromWei(number [, unit])
パラメータ
1. number - String|Number|BN
戻り値
String|BN
サンプル
code:ex.js
web3.utils.fromWei('1', 'ether');
"0.000000000000000001"
web3.utils.fromWei('1', 'finney');
"0.000000000000001"
web3.utils.fromWei('1', 'szabo');
"0.000000000001"
web3.utils.fromWei('1', 'shannon');
"0.000000001"
参考